<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<!--	<h1 align="center">欢迎登陆武林秘籍管理系统</h1>-->
<!--	<hr>-->
<!--	<div align="center">-->
<!--		<form action="" method="post">-->
<!--			用户名:<input name=""/><br>-->
<!--			密码:<input name=""><br/>-->
<!--			<input type="submit" value="登陆">-->
<!--		</form>-->
<script src="webjars/jquery/3.6.0/jquery.js"></script>
	</div>
	<h1>用户登录</h1>
	<form th:action="@{/login}" method="post">
		用户名:<input type="text" name="username">
		<br>
		密&nbsp;&nbsp;&nbsp;码<input type="password" name="password">
		<br>
		验证码：<input type="text" name="code"><img id="code" onclick="onClick()" src="/validcode" width="100" height="40"/>
		<br/>
		记住我：<input type="checkbox" name="remember-me"/><br/>
		<input type="submit" value="登录">
		<br>
		<span th:text="${msg}" style="color: red"></span>
		<br>
	</form>
</body>
<script>
	function onClick() {
		$("#code").attr("src","/validcode")
	}
</script>
</html>
